import request from '@/utils/request'
export function getUser(data) {
	return request({
		url: '/mini/wechat/user/info',
		method: 'post',
		data,
	})
}
export function getProtocol(data) {
	return request({
		url: '/protocol/info',
		method: 'post',
		data,
	})
}

export function getData(data) {
	return request({
		url: '/mini/wechat/user/data',
		method: 'post',
		data,
	})
}
export function setUser(data) {
	return request({
		url: '/mini/wechat/user/update/info',
		method: 'post',
		data,
	})
}
// 积分
export function pointsList(data) {
	return request({
		url: '/mini/wechat/user/points/list',
		method: 'post',
		data,
	})
}
// 开通会员支付接口
export function createVip(data) {
	return request({
		url: '/mini/vip/pay/create',
		method: 'post',
		data,
	})
}

// 分社长领取年费会员
export function receiveVip(data) {
	return request({
		url: '/mini/wechat/user/group/receive/vip',
		method: 'post',
		data,
	})
}

// vip开通记录
export function vipFirst(data) {
	return request({
		url: '/mini/vip/pay/my/first/pay',
		method: 'post',
		data,
	})
}

// vip申请退款
export function vipRefund(data) {
	return request({
		url: '/mini/vip/pay/refund',
		method: 'post',
		data,
	})
}



